<?php
//src/Asiah/SiklusBundle/Form/Type/User.php

namespace Asiah\SiklusBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class UserType extends AbstractType {

	public function buildForm(FormBuilder $builder, array $options) {
		$builder -> add('name', 'text');
		$builder -> add('username', 'text');
		$builder -> add('password', 'password');
		$builder -> add('email', 'email');
	}

	public function getName() {
		return "user";
	}

	public function getDefaultOptions(array $options) {
		return array('data_class' => 'Asiah\SiklusBundle\Entity\User', 
		);
	}

}
